package org.demo.service.impl;

import java.util.List;
import java.util.Map;
import java.util.concurrent.CountDownLatch;

import com.alibaba.dubbo.common.URL;
import com.google.common.collect.Maps;

public class NewsInfo {
	
	private String timestamp;
	private String version;
	private String host;
	private String message;
	private List<String> tags;
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public List<String> getTags() {
		return tags;
	}
	public void setTags(List<String> tags) {
		this.tags = tags;
	}
	
	public static void main(String[] args) {
		Map<String, String> map = Maps.newConcurrentMap();
		map.put("aaa", "bbb");
		map.put("ccc", "ddd");
		map.put(null, "ddd");
		String remove = map.remove("ccc");
		System.out.println(remove);
		System.out.println(map.size());
	}
}
